#!/bin/sh
#cd src
#java -Djava.security.policy=client.policy -Djavax.net.ssl.trustStore=servertesttrust.ks client.MainClient $1 || exit 1



DIR=`pwd`
if [ $# -lt 3 ]
then
	echo "Usage ./client <IP (without port number)> <password_keyStoreClient> <password_trustStoreServer>"
else
	cd src
	java -Djava.security.policy=client.policy -Djavax.net.ssl.keyStore=clientkeys.ks -Djavax.net.ssl.keyStorePassword=$2 -Djavax.net.ssl.trustStore=clienttrust.ks -Djavax.net.ssl.trustStorePassword=$3 client.MainClient $1
fi
